<template>
  <div>
      <table>
          <tr v-for="i in list" :key="i.id">
              <td>
                  <router-link :to="{name:'apply_for1',query:{'id':i.id}}">{{i.title}}</router-link>
              </td>
          </tr>
      </table>
  </div>
</template>

<script>
import axios from 'axios'
export default {
    name:'apply_for',
    data(){
        return{
            list:[],
            id:localStorage.getItem('uid')
        }
    },
    methods:{
        getlist(){
            axios.get('/mytaskaudit?id='+this.id).then(res=>{
                console.log(res);
                this.list = res.data.list
            })
        }
    },
    mounted(){
        this.getlist()
    }
    
}
</script>

<style>

</style>